package com.gr.dmbackend.controller.dormaddmin;

import com.alibaba.fastjson.JSONObject;
import com.gr.dmbackend.service.dormaddmin.GetDormAddminListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class GetDormAddminListController {

    @Autowired
    private GetDormAddminListService getDormAddminListService;

    @GetMapping("/api/dormaddmin/getlist")
    public JSONObject getDormAddminList() {
        return getDormAddminListService.getDormAddminList();
    }
}
